#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20220814.sql ./mysql/db
cp ../sql/ry_config_20220510.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copygateway "
cp ../gateway/target/gateway.jar ./free/gateway/jar

echo "begin copyauth "
cp ../auth/target/auth.jar ./free/auth/jar

echo "begin copyvisual "
cp ../visual/monitor/target/visual-monitor.jar  ./free/visual/monitor/jar

echo "begin copymodules-system "
cp ../modules/system/target/modules-system.jar ./free/modules/system/jar

echo "begin copymodules-file "
cp ../modules/file/target/modules-file.jar ./free/modules/file/jar

echo "begin copymodules-job "
cp ../modules/job/target/modules-job.jar ./free/modules/job/jar

echo "begin copymodules-gen "
cp ../modules/gen/target/modules-gen.jar ./free/modules/gen/jar

